import createjs.Stage
import createjs.Text
import kotlinx.browser.document
import org.w3c.dom.HTMLCanvasElement

fun main() {
    val el = document.createElement("canvas") as HTMLCanvasElement
    el.width = 550
    el.height = 400
    document.body!!.appendChild(el)
    val stage = Stage(el)

    val txt = Text("Hello World", "20px Arial", "#ff7700")
    stage.addChild(txt)

    stage.update()
}